class rmove():
    def __init__(self,s):
        self.r_x = 0
        self.r_y = 0
        self.scale = s
    def clear(self):
        self.r_x = 0
        self.r_y = 0

    def put(self,dx,dy):
        self.r_x += dx*self.scale
        self.r_y += dy*self.scale
        dx = round(self.r_x)
        dy = round(self.r_y)
        self.r_x = self.r_x-dx
        self.r_y = self.r_y-dy
        return dx,dy